package eyou.net.httpclient;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;

import eyou.net.request.TBaseApi;
import eyou.net.request.TBaseCallback;
import eyou.net.request.TOkHttpResponse;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        TBaseApi.createGetRequest("/plugin/user/group/?q=data&type=group&pid=0&limit=50&offset=0", "group", "0", new TBaseCallback<TBaseDataResult<MCResult>>() {

            @Override
            public void onResponse(TOkHttpResponse<TBaseDataResult<MCResult>> response, int i) {
                if (response.getStatus() == 200) {

                    Log.i("sdsdasdads",response.toString());
                    MCResult data = response.getResult().getData();
                }
            }
        });
    }
}
